#ifndef ENGINE_H_INCLUDED
#define ENGINE_H_INCLUDED

#include "ui.h"
#include "words.h"

class Engine {
    UI ui;
    WordMaster master;
    bool first = 1;

    void RunTutorial();
    void RunMainGame();
    void StartGame();
    bool DoFailure(const char *word);
    bool DoWin(const char *word);
    void ReloadWords();

public:
    Engine(UI &ui): ui(ui) {}
    Engine(UI &ui, WordMaster &wm): ui(ui), master(wm) {}

    void Start();
};

#endif // ENGINE_H_INCLUDED
